﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Controller;

namespace Trabajador
{
    public partial class forgotpassword : Form
    {
        UserController uMan;
        public forgotpassword()
        {
            uMan = new UserController();
            InitializeComponent();
        }

        private void btnForgot_Click(object sender, EventArgs e)
        {
            uMan.sendPassword(txtEmail.Text);

            MessageBox.Show("Se envio correctamente la contraseña", "Contraseña enviada");
            this.Close();
        }
    }
}
